package com.woniuxy.entity.impl;

import com.woniuxy.entity.Person;

/**
 * @Author: 马宇航
 * @Do: 老婆实体类
 * @DateTime: 22/08/18/0018 16:18
 * @Component: 成都蜗牛学苑
 **/
public class Wife implements Person {
    private String name;
    private String sex;

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Wife() {
    }

    public Wife(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    @Override
    public void eat() {
        System.out.println("老婆来了");
    }

    @Override
    public String toString() {
        return "Wife{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
